package com.example.night.data.SellingGood;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

// API 响应中的 data 部分
@JsonIgnoreProperties(ignoreUnknown = true)
public class SellingGoodData {
    @JsonProperty("total")
    private int total;

    @JsonProperty("per_page")
    private int perPage;

    @JsonProperty("current_page")
    private int currentPage;

    @JsonProperty("last_page")
    private int lastPage;

    @JsonProperty("data")
    private List<SellingGood> sellingGoods;

    // Getters 和 Setters
    public int getTotal() { return total; }
    public void setTotal(int total) { this.total = total; }

    public int getPerPage() { return perPage; }
    public void setPerPage(int perPage) { this.perPage = perPage; }

    public int getCurrentPage() { return currentPage; }
    public void setCurrentPage(int currentPage) { this.currentPage = currentPage; }

    public int getLastPage() { return lastPage; }
    public void setLastPage(int lastPage) { this.lastPage = lastPage; }

    public List<SellingGood> getGoods() { return sellingGoods; }
    public void setGoods(List<SellingGood> sellingGoods) { this.sellingGoods = sellingGoods; }
}
